<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1>查看已选的课程</h1>

<form method="post" action="/dropOut">
    <div>一选课程</div>

    <div th:each="course:${courses}">
        <input type="checkbox" name="selectedCourse" th:value="${course.no}">
        <a>课程号：[[${course.no}]]</a>
        <a>课程名：[[${course.name}]]</a>
        <a>讲师：[[${course.teacher}]]</a>

        <a><button type="submit">退选此课程 </button></a>
    </div>


</form>

<a  href="index" th:href="@{index}">
    <button >回到主界面</button>
</a>



</div>

</body>
</html>